							<!-- Comment Section -->
                  

                       	<!-- Comment Section -->
								
     
   <div id="wrapCommentBlock">
                    <h3 class="commentBlockTitle">Bình luận: </h3>
                             
                               
                               
                                 			
                                            <?php
								 		if($data[data])
                                        foreach($data[data] as $row)
										{?>
                             <div class="eachMainComment" >
                            <div class="innerMainComment">
                                <span class="imageContainer guestAuthor"></span>
                                <div class="mainCommentContent">
                                    <div class="wrapMainContentComment">
                                        <p class="commentAuthorName"><b><?php echo $row['user']; ?></b></p>
                                        <p class="commentTime"> <?php echo $row['time_add'];?></p>
                                        <p class="commentContent"><?php echo $row['content'];?></p>
                                        <p class="commentReply">
                                             
                                                        <div data-role="controlgroup" data-type="horizontal" data-mini="true">              <a   href="javascript:quote('<?php echo $row['user'];?>',<?php echo $row['id']?>)" title="Delete This Comment" data-role='button' data-inline='true' data-theme='b'>Trả Lời</a>  
                                        <?php
										
										if($data[per]==1 || $data[per]==2)
										{
										?>
                                       
                                                                      
                                      
                                       <a  href="javascript:delete_comment(<?php echo $rc['id']?>,<?php echo $_GET['id'];?>,'news')" title="Delete This Comment" data-role='button' data-inline='true' data-theme='b'>Delete</a>
             						 
                                        
                             
                                          
                                            <?php
										}
										?>
                                          </div>
                                         </p>
                                        
                                        <div class="clr"></div>
                                    </div>
                            
                                
                                
                                
                                      <!-- Comment reply-->
                               <?php
							   if($row['reply']==1){
								   ?>
                                     <?php
								foreach($row['replydata'] as $rc){
								?>
                                   <div class="mingid-arrow"><span class="mingid-arrowUp"></span></div>
                                        <div class="eachChildComment" id="commentNo62">
                                            <div class="innerChildComment">
                                                <span class="childImageContainer adminAuthor32"></span>
                                                <div class="childCommentContent">
                                                    <p class="childCommentAuthorName"><b><?php echo $rc['user']; ?></b></p>
                                                    <p class="childCommentTime"> <?php echo $rc['time_add'];?></p>
                                                    <p class="childCommentContent"><?php echo $rc['content'];?></p>
                                                                      <div data-role="controlgroup" data-type="horizontal" data-mini="true">  
                                        <?php
										
										if($data[per]==1 || $data[per]==2)
										{
										?>
                                       
                                                                      
                                      
                                       <a  href="javascript:delete_comment(<?php echo $rc['id']?>,<?php echo $_GET['id'];?>,'news')" title="Delete This Comment" data-role='button' data-inline='true' data-theme='b'>Delete</a>
             						 
                                        
                             
                                          
                                            <?php
										}
										?>
                                          </div>
                                          
                                                </div>
                                            </div>
                                        </div><!-- end .eachChildComment -->
                                        <?php }?>
                                <?php }?>
                                   <!-- Comment reply-->
                                   </div>
                                
                                <!-- end .mainCommentContent -->
                            </div><!-- end .innerMainComment -->
                            <div class="clr"></div>
                        </div><!-- end .eachMainComment -->
                        <div class="clr"></div>
                    
                                        
            		<?php
										}
										
										?>
 			                                       
                                        
                                        
    </div> <!-- END OF DIV CONTENT -->

                    
                    
                           <style>
                           .commentform  li{
							   padding:0px;
							   margin:0px;
							   list-style:none;
						   }
                           </style>
        
					            
     <h3>GỬI PHẢN HỒI</h3>
     <form class="abform">
                           <ul class="commentform">
                          			<?php if(!isset($_SESSION['username']))
											{
												?>
                                             		<li>
                                           			  <label>Tên của bạn (*) </label> <br /><input type="text" id="comment_user" value="" /></li>
                                           
                                            <?php
											}
											else
											{
											?>
                                            
                                           <li> <input type="hidden" id="comment_user" value="<?php echo $_SESSION['username']?>" />  </li>
                                            <?php
											}?>
                                          
                                           
                                          <li>
                                          
                                          
                                            <input type="hidden" id="comment_pid" value="" />
                                          
                                           <input type="hidden" id="comment_geturl" value="<?php echo $data[geturl]?>" />
                                         <input type="hidden" id="comment_tieude" value="<?php echo2($data[tieude])?>" />
                                          <input type="hidden" id="comment_url" value="<?php echo url();?>" />
         									<input type="hidden" id="comment_id" value="<?php if(!$data['cid']){ ?><?php echo $_GET['id'];?><?php }else{echo $data['cid'];}?>" />
                                            <input type="hidden" id="ip" value="<?php echo get_ip();?>" /></li>
                          				
                          
                            
                      <li>      
                        <label>Nội dung (*) </label> <br />
                           <textarea name="comment_content" id="comment_content" style=" height:150px"></textarea>
                     </li>

    					
    <li>
                            
                            <label>&nbsp;</label><input  type="button" value="Gửi Phản Hồi" name="ok" onclick="add_comment()" style="padding:3px" />
                        
               </li>         
          </ul>
          </fieldset>
          </form>
          
          
        
          
         
					